package com.macro.ai.all.func;

import java.util.function.Function;

/**
 * @ClassName RecruitServiceFunction
 * @Description TODO
 * @Author wanghong
 * @Date 2025/6/22 11:52
 * @Version 1.0
 **/
public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {
    @Override
    public Response apply(Request request) {
        String position = "未知";
        if(request.name.contains("张三")){
            position = "Java开发";

        }
        return new Response(position);
    }

    public record Request(String name) {};

    public record Response(String position) {};
}
